package com.zbmsg.server;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.zbmsg.group.bean.Group;
import com.zbmsg.user.bean.User;

import io.netty.channel.group.ChannelGroup;

public class Global {
	//所有用户(channel)
//	public static ChannelGroup group = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
	//群聊房间组
	public static Map<String,ChannelGroup> channelGroups = new ConcurrentHashMap<String, ChannelGroup>();
	//房间信息
	public static Map<String,Group> groups = new ConcurrentHashMap<String, Group>();
	//用户信息
	public static Map<String,User> users = new ConcurrentHashMap<String, User>();
    //如果做集群这里要换成redis,或者存储房间和用户信息的部分要单独分出一个包来。
	
	
	//考虑在维护一个  Map<groupId,Users>的容器
}
